<template>
	<view>
		<view class="list-box">
			<navigator url="/pages/user/modifyPwd" hover-class="none" class="list flex-between">
				<view class="left">修改密码</view>
				<view class="iconfont iconyoujiantou1"></view>
			</navigator>
			
		</view>
		<view class="loginout flex-center" @click="loginout">
			退出登录
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			loginout(){
				uni.showModal({
					title:"提示",
					content:'是否退出登录？',
					confirmColor:"#039702",
					success:r=>{
						if(r.confirm){
							uni.reLaunch({
								url:"/pages/login/index"
							})
						}
					}
				})
			}
		}
	}
</script>

<style lang="less">
	.list-box{
		background: #fff;
		padding: 0 30rpx;
		margin-top: 30rpx;
		.list{
			height: 80rpx;
			border-bottom: 1px solid #eee;
			font-size: 32rpx;
		}
	}
	.loginout{
		height: 100rpx;
		margin-top: 100rpx;
		background: white;
		color: #039702;
	}
</style>
